import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/views/index.vue'),
      children: [{
        path: "welcome",
        name: "welcome",
        component: () => import('@/views/welcome/index.vue')  // 主页面
      },{
        path: "android",
        name: "android",
        component: () => import('@/views/android/index.vue')  // android生成代码页面
      },{
        path: "translate",
        name: "translate",
        component: () => import('@/views/translate/index.vue') // 多语言处理页面
      },{
        path: "emptyend",
        name: "emptyend",
        component: () => import('@/views/emptyend/index.vue') // 后端空文件页面
      },{
        path: "database",
        name: "database",
        component: () => import('@/views/database/index.vue') // 数据库操作页面
      },{
        path: "workreport",
        name: "workreport",
        component: () => import('@/views/workreport/index.vue') // 日报处理界面
      },{
        path: "workview",
        name: "workview",
        component: () => import('@/views/workreport/info.vue') // 日报视图界面
      },{
        path: "workbase",
        name: "workbase",
        component: () => import('@/views/workreport/base.vue') // 日报基础
      },{
        path: "workechart",
        name: "workechart",
        component: () => import('@/views/workreport/echart.vue') // 图表管理
      },{
        path: "flashdata",
        name: "flashdata",
        component: () => import('@/views/flashdata/index.vue') // 假数据
      },{
        path: "autoExport",
        name: "autoExport",
        component: () => import('@/views/autoExport/index.vue') // 假数据
      }

    ]
    }
  ]
})

export default router
